<?php

namespace frontend\assets;

use yii\web\AssetBundle;

/**
 * Main frontend application asset bundle.
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web/statics';
    public $css = [
        //'css/site.css',
		"css/bootstrap.min.css",
        "css/font-awesome.min.css",
        "css/flexslider.css",
        "css/styles.css",
        "css/queries.css",
        "css/animate.css",
    ];
    public $js = [
	     "js/jquery.min.js",
         "js/waypoints.min.js",
         "js/bootstrap.min.js",
         "js/scripts.js",
         "js/jquery.flexslider.js",
         "js/modernizr.js",
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
    ];
	
	 public static function addScript($view, $jsfile)
    {
        $view->registerJsFile($jsfile, [AppAsset::className(), 'depends' => 'backend\assets\AppAsset']);
    
    }
    
    public static function addCss($view, $cssfile)
    {
        $view->registerCssFile($cssfile, [AppAsset::className(), 'depends' => 'backend\assets\AppAsset']);
    }
}
